<html>
	<head>
		<meta charset="utf-8" />
		<title>html5新增的布局元素</title>
		{% load static %}
    	<link rel="stylesheet" type="text/css" href="{% static 'css/7css.css' %}"/>
	</head>

	<body bgcolor="mediumblue"  background="{% static 'image/t01d61356d326bd0f99.jpg' %}">
		
		{% include "htm.html" %}
		
		
		<div id="contatiner" style="height: 800px;border: 1px solid gray; margin-top: 5px" >
		<section>
            <h2>最新<a style="float:right;" href="/login/fuanbu/">[发布新文章]</a></h2>
			{% for item in lstemp %}
			<article>
				文章标题：<h3  style="display:inline;">{{item.title}}</h3><br>
				发布者昵称：<h3 style="display:inline;">{{item.dept.name}}</h3>

				{% autoescape off %}
				<h3>文章内容aaaa：{{item.artile}}</h3>
				{% endautoescape %}
				<br>
			</article>
            {% endfor %}
		</section>
		
		
		</div>
	
	<p>
		{% if lstemp.has_previous %}
		<a href="?page={{ lstemp.previous_page_number }}">上一页</a>
		{% endif %}

		当前：{{ lstemp.number }} / {{ lstemp.paginator.num_pages }}

		{% if lstemp.has_next %}        
		<a href="?page={{ lstemp.next_page_number }}">下一页</a>
		{% endif %}
	</p>
	{% include "yewb.html" %}
	</body>

</html>